package com.example.chinesenation.Utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/1/19 20:02
 */
public class CommonURL {
    //目前主服务器IP
    public static final String mainIP="119.96.190.130";

    //图片服务器相关配置
    public static final String Header="http://";
    public static final String IP="119.96.190.130";
    public static final String port="58084";
    public static final String contextPath="/v1/api";

    public static final String URL=Header+IP+":"+port+contextPath;
    public static final String imgUrl=URL+"/img/";

    //elasticsearch对应的索引名字
    public static final String articleIndex="article";
    public static final String policyIndex="policy";
    //ES的服务器域名
    public static final String ESDns="119.96.190.130";


    /**
     * Redis中数据的key的前缀
     */

    public static final String RedisArticle="article:";//(+articleId)每个文章的key
    public static final String RedisPolicy="policy:";//(+policyId)每个政策的key
    public static final String RedisArticlePageView="article:size:";//(+articleId)每个文章阅读量计数的key
    public static final String RedisPolicyPageView="policy:size:";//(+policyId)每个政策阅读量计数的key

    //NationTools中：
    public static final String CategoryRedis="nation:category";
    public static final String ModuleRedis="nation:module";

    //NationController中:
    public static final String NationMainPageResources="nation:resources";//民族模块主界面轮播图资源
    public static final String NationMainPageArticle="nation:article";//民族模块主界面文章信息
    public static final String NationIntroduction="nation:nation:";//(+nationName)民族模块每个民族的介绍信息
    public static final String NationPageRecommend="nation:articleLists:";//(+nationName)民族模块每个民族的热门文章
    public static final String NationPageResources="nation:resources:";//(+nationName)民族模块每个民族的主页图
    public static final String NationPageArticle="nation:article:";//(+nationName)民族模块每个民族对应的文章（分类别）,存储类型为HashMap
    public static final String NationPageCategory="nation:category:";//(+CategoryName)民族模块每个类别对应的文章（不分民族),存储类型为HashMap

    public static final String NationAgePartition="nation:nation:agePartition:";//民族年龄分布
    public static final String NationBirthStatus="nation:nation:birthStatus:";//该民族生育情况统计
    public static final String NationDisableWork="nation:nation:disableWork:";//该民族为工作人口统计
    public static final String NationEducation="nation:nation:education:";//该民族受教育程度统计
    public static final String NationIndustry="nation:nation:industry:";//该民族工作情况统计
    public static final String NationMaritalStatus="nation:nation:maritalStatus:";//该民族婚宴状况统计

    //MainController中:
    public static final String MainPagePolicy="mainPolicy";
    public static final String MainPageArticle="mainArticle";
    public static final String MainPageResources="mainResources";

    //MapController中
    public final static String MapControllerRedis="Map:";
    public final static String ProvinceRedis="Province:";
    public final static String CityRedis="City:";


    //涉及推荐功能的字符串
    public final static String[] CategoryList=new String[]{"民族旅游","民族自治"
            , "民族文化", "民族医药", "民族饮食", "民族人物", "民族工艺", "民族建筑", "民族文艺", "民族体育"};

    //用户推荐功能
    public final static String InterestProfile="User:";


}
